package main.dao;

import main.view.Main;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class BookTableDB {
    public ResultSet date(String title) throws SQLException {
        String sql = "select * from book where title=?";
        Connection con = new Main().getConnection();
        PreparedStatement ps = con.prepareStatement(sql);
        ps.setString(1, title);
        ResultSet rs = ps.executeQuery();
        return rs;
    }
}
